import request from '@/utils/request'

// 查询对账单明细列表
export function listPayOrderInfo (query) {
  return request({
    url: '/system/payOrderInfo/list',
    method: 'get',
    params: query
  })
}

// 查询对账单明细详细
export function getPayOrderInfo (id) {
  const params = {
    'id': id
  }
  return request({
    url: '/system/payOrderInfo/getInfo',
    method: 'get',
    params: params
  })
}

// 新增对账单明细
export function addPayOrderInfo (data) {
  return request({
    url: '/system/payOrderInfo/insert',
    method: 'post',
    data: data
  })
}

// 修改对账单明细
export function updatePayOrderInfo (data) {
  return request({
    url: '/system/payOrderInfo/update',
    method: 'post',
    data: data
  })
}

// 删除对账单明细
export function delPayOrderInfo (id) {
  const params = {
    'id': id
  }
  return request({
    url: '/system/payOrderInfo/delete',
    method: 'post',
    params: params
  })
}
// 批量删除对账单明细
export function delBatchPayOrderInfo (ids) {
  const params = {
    'ids': ids
  }
  return request({
    url: '/system/payOrderInfo/deleteBatch',
    method: 'post',
    params: params
  })
}

// 导入对账单明细
export function importData (data) {
  return request({
    url: '/system/payOrderInfo/importData',
    method: 'post',
    data: data
  })
}
